<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <base href="<%=basePath%>">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
 	<%@ include file="/common/importJsCss.jsp" %>
	<script type="text/javascript" id="preJavascript">
$(function(){
	 function Position(){
		this.x="";
		this.y="";
		this.width="";
		this.height="";
		this.textPos=[];
		this.textPos.x="";
		this.textPos.y="";
		this.doSplit = function(gstr){
			var array = gstr.split(":");
            var posArray = array[0].split(",");
            this.x=posArray[0]==null?"":posArray[0];
			this.y=posArray[1]==null?"":posArray[1];
			this.width=posArray[2]==null?"":posArray[2];
			this.height=posArray[3]==null?"":posArray[3];
			if(array.length>1){
				var textPosArray = array[1].split(",");
				this.textPos.x=textPosArray[0]==null?"":textPosArray[0];
				this.textPos.y=textPosArray[1]==null?"":textPosArray[1];			
			}
		}
	  };
	  
	function Node(){
		this.position = new Position();
		this.type="";
		this.text="";
	};
			
	var p = new Position();
	var node = new Node();
	p.doSplit("12,23,34,56:11,22");
	node.position.doSplit("12,23,34,56:11,22");
	out("all",p.x+"#"+p.y+"#"+p.width+"#"+p.height+"#"+p.textPos.x+"#"+p.textPos.y);
	out("node.position.x",node.position.x)
});
	</script>
  </head>  
  <body>
	<div class="container">
        <div class="page-header">
            <h2>类</h2>
        </div>
<pre class="prettyprint linenums"></pre>
    </div>
  </body>
</html>
